package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizProduct;
import com.baseweb.webadmin.core.model.pojo.ByUserOrderDetail;
import com.baseweb.webadmin.core.model.pojo.User;
import org.joda.time.DateTime;

import java.math.BigDecimal;

public class ByUserOrderDetailInfoBvo extends ByUserOrderDetail{

    private User user;

    private User bizUser;

    private ByUserBizProduct byUserBizProduct;

    public static ByUserOrderDetailInfoBvo copyFrom(ByUserOrderDetail byUserOrderDetail, User user, User bizUser, ByUserBizProduct byUserBizProduct) {
        ByUserOrderDetailInfoBvo bvo = new ByUserOrderDetailInfoBvo();
        bvo.setId(byUserOrderDetail.getId());
        bvo.setUserId(byUserOrderDetail.getUserId());
        bvo.setProductId(byUserOrderDetail.getProductId());
        bvo.setPrice(byUserOrderDetail.getPrice());
        bvo.setCreateTime(byUserOrderDetail.getCreateTime());
        bvo.setUpdateTime(byUserOrderDetail.getUpdateTime());
        bvo.setCoins(byUserOrderDetail.getCoins());
        bvo.setDescn(byUserOrderDetail.getDescn());
        bvo.setStatus(byUserOrderDetail.getStatus());
        bvo.setScheduleDate(byUserOrderDetail.getScheduleDate());
        bvo.setScheduleType(byUserOrderDetail.getScheduleType());
        bvo.setDinnerType(byUserOrderDetail.getDinnerType());
        bvo.setDinnerAddress(byUserOrderDetail.getDinnerAddress());
        bvo.setBizUserId(byUserOrderDetail.getBizUserId());
        bvo.setBizStar(byUserOrderDetail.getBizStar());
        bvo.setUserStar(byUserOrderDetail.getUserStar());
        bvo.setOrderId(byUserOrderDetail.getOrderId());
        bvo.setDeposit(byUserOrderDetail.getDeposit());
        bvo.setUserComment(byUserOrderDetail.getUserComment());
        bvo.setAmount(byUserOrderDetail.getAmount());

        bvo.setUser(user);
        bvo.setBizUser(bizUser);
        bvo.setByUserBizProduct(byUserBizProduct);

        return bvo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getBizUser() {
        return bizUser;
    }

    public void setBizUser(User bizUser) {
        this.bizUser = bizUser;
    }

    public ByUserBizProduct getByUserBizProduct() {
        return byUserBizProduct;
    }

    public void setByUserBizProduct(ByUserBizProduct byUserBizProduct) {
        this.byUserBizProduct = byUserBizProduct;
    }
}
